package com.youkeda.bmatch;

import com.youkeda.bmatch.model.User;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 * 把用户信息更新到 excel 表格中
 * @author zhoufan
 * @date 2019/1/22
 */
public class ExcelCaseApplication {

  static SimpleDateFormat format = new SimpleDateFormat("yyyy-mm-dd");


  public static void main(String[] args) {

  }


  public static List<User> getFirstUser(){
    List<User> userList = new ArrayList<>();
    try {
      userList.add(new User(1, "小芳", 161, 51, format.parse("1991-01-01")));
      userList.add(new User(2, "小薇", 162, 52, format.parse("1992-01-01")));
      userList.add(new User(3, "小苼", 163, 53, format.parse("1993-01-01")));
    } catch (ParseException e) {
      e.printStackTrace();
    }
    return userList;
  }

  public static List<User> getSecondUser(){
    List<User> userList = new ArrayList<>();
    try {
      userList.add(new User(4, "小明", 164, 71, format.parse("1994-01-01")));
      userList.add(new User(5, "小磊", 165, 72, format.parse("1995-01-01")));
      userList.add(new User(6, "小峰", 166, 73, format.parse("1996-01-01")));
    } catch (ParseException e) {
      e.printStackTrace();
    }
    return userList;
  }
}
